package org.example;

import org.example.config.Springconfig;
import org.example.dao.BookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class APPforannotation {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(Springconfig.class);
        BookDao bookDao = context.getBean(BookDao.class);
        bookDao.save();
    }
}
